package com.demoworld;

/**
 * Created by liwei.b on 2017/6/22.
 */
public class MyTask implements Runnable {
    private int taskType;
    private String taskName;
    public MyTask(int taskType, String taskName) {
        this.taskType = taskType;
        this.taskName = taskName;
    }
    @Override
    public void run() {
        System.out.println("task is running at thread " + Thread.currentThread().getId() + ",task type=" + taskType + ",task name=" + taskName);
    }
    public int getTaskType() {
        return taskType;
    }
    public void setTaskType(int taskType) {
        this.taskType = taskType;
    }
    public String getTaskName() {
        return taskName;
    }
    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }
}
